function getVolunteerList(){
	var vtype=$("#type").val();
	var vaddress=$("#address_small").val();
	
	$.post("/happinesshome/user/list",{type:vtype,address:vaddress},function(data){
		if(data.success=="true"){
			location.href="zyzlist.jsp";
		}else if(data.success=="nologin"){
			alert("请先登录再匹配!如果不是老人请查看其他内容。");
			location.href="login.jsp";
		}else{
			alert("匹配失败！请重新尝试！");
		}
		
	},"json");
	return false;
}
function chooseVolunteer(uvid){
	$.post("/happinesshome/user/choose",{vid:uvid},function(data){
		if(data.success=="true"){
			alert("您已成功匹配，请耐心等待管理员审核！");
			location.href="index.jsp"
		}else if(data.success=="nologin"){
			alert("请先登录再匹配!如果不是老人请查看其他内容。");
			location.href="login.jsp";
		}else if(data.success=="isChoose"){
			alert("已经匹配，请不要重复匹配！");
			location.href="index.jsp";
		}else{
			alert("匹配失败！请重新尝试！");
		}
	},"json");
}